package com.bjpowernode.db.mapper;

import cn.hutool.core.date.DateTime;
import com.bjpowernode.db.domain.IncomeRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bjpowernode.db.result.IncomeProductResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author z'x'c
* @description 针对表【b_income_record(收益记录表)】的数据库操作Mapper
* @createDate 2023-07-21 21:29:51
* @Entity com.bjpowernode.db.domain.IncomeRecord
*/
public interface IncomeRecordMapper extends BaseMapper<IncomeRecord> {


    //查询某个用户的收益记录
    List<IncomeProductResult> selectIncomeByUid(@Param("userId") Integer userId, @Param("offset") int offset, @Param("pageSize") Integer pageSize);


    //查询到期收益.
    List<IncomeRecord> selectIncomeBackList(@Param("dateTime") DateTime dateTime);
}




